#ifndef BOOKMARKBAR_H
#define BOOKMARKBAR_H

#include <QWidget>
#include <QToolBar>
#include "bookmarkitem.h"

class BookmarkBar : public QWidget
{
	Q_OBJECT
public:
	explicit BookmarkBar(QWidget *parent = 0);
	inline QToolBar *bar(void) { return toolBar; }
	void showBookmarks(QVector<BookmarkItem*> *bookmarks);
signals:
	void bookmarkOpened(BookmarkItem *bookmark, Qt::MouseButton button);
public slots:
	void openBookmark(QAction *action);
private:
	BookmarkItem *tempItem;
	QToolBar *toolBar;
};

#endif // BOOKMARKBAR_H
